Document Solutions for PDF
GrapeCity.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / DXUtil Class / Read Method / Read<T>(IntPtr,T[],Int32,Int32) Method
Type of a data to read.
Memory location to read from.
The data write to.
The offset in the array to write to.
The number of T element to read from the memory location.

In This Topic
    Read<T>(IntPtr,T[],Int32,Int32) Method
    In This Topic
    Reads the specified array T[] data from a memory location.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Read(Of T As {New, Struct})( _
       ByVal source As System.IntPtr, _
       ByVal data() As T, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) As System.IntPtr
    public static System.IntPtr Read<T>( 
       System.IntPtr source,
       T[] data,
       System.int offset,
       System.int count
    )
    where T: new(), struct

    Parameters

    source
    Memory location to read from.
    data
    The data write to.
    offset
    The offset in the array to write to.
    count
    The number of T element to read from the memory location.

    Type Parameters

    T
    Type of a data to read.

    Return Value

    source pointer + sizeof(T) * count.
    See Also